package com.zj.classwork;
import java.util.Scanner;
public class ClassWork19 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入一组整数：");
        int[]arr=new int[5];
        int count=0;
        double sum=0;
        for (int i=0;i<arr.length;i++)
        {
            arr[i]= input.nextInt();
        }
        for (int j=0;j<arr.length;j++)
        {
            if(arr[j]%2==0)
            {
                count++;
                sum+=arr[j];
            }

        }
        System.out.println("偶数的个数为："+count);
        System.out.println("偶数的平均值为："+sum/arr.length);
    }
}
